<div id="banner-right">
<?php
$i=0;
    foreach ($product as $key => $value):
        $first = $i<1 ? 'margin-first' : '';
        echo CHtml::openTag('div', array('class' => 'banner-right-items '.$first));
        echo CHtml::link(CHtml::image(Yii::app()->baseUrl."/uploads/images/products/".$value->image, $value->name, array('class' => '', 'style' => 'height: 71px')), Yii::app()->createUrl('/product/view/', array('id' => $value->id)), array('class' => ''));
        echo CHtml::closeTag('div');
        $i++;
    endforeach;
?>
<!--    <div class="banner-right-items margin-first">items 1</div>
        <div class="banner-right-items">items 2</div>
        <div class="banner-right-items">items 3</div>
        <div class="banner-right-items">items 4</div>   -->
</div>

